package com.zxbg.service.systemtoolsService;

import com.zxbg.domain.Department;
import com.zxbg.domain.Employee;

import java.util.List;
import java.util.Map;

public interface OrganizationalStructureService {
    public Department getRootNode(Integer tenant_id);

    public List<Department> getDepartmentByParentDeptId(Integer parent, Integer tenant_id);

    public List<Employee> getEmployeesByWorkerId(Map<String, Object> search_info, Integer tenant_id);

    public String addEmployee(Employee employee, Integer tenant_id);

    public String updateEmployee(Employee employee, Integer tenant_id);

    public boolean changeEmployeeStatus(List<String> employee_ids, Integer tenant_id, Integer status);

    public boolean changePassword(String employee_id, String new_password, Integer tenant_id);

    public String addSubDept(Integer dept_id, String add_dept, Integer tenant_id);

    public String changeDeptName(Integer dept_id, String new_name);

    public boolean deleteDept(Integer dept_id);

    public boolean deptMove(Integer dept_id, Integer direction);

    public boolean setDeptHeader(List<Employee> employeeList, Integer dept_id, Integer tenant_id);

    public List<Department> searchDept(String key, Integer tenant_id);
}
